package com.aiti.lulian.service.impl;

import com.aiti.base.core.base.service.iml.BaseSerivceImpl;
import com.aiti.lulian.entity.CustomerTagRelation;
import com.aiti.lulian.mapper.CardClusterRichTextMapper;
import com.aiti.lulian.mapper.CustomerTagRelationMapper;
import com.aiti.lulian.service.ICustomerTagRelationService;
import com.aiti.lulian.vo.CustomerTagVo;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CustomerTagRelationServiceImpl extends BaseSerivceImpl<CustomerTagRelationMapper, CustomerTagRelation> implements ICustomerTagRelationService {

    private final CardClusterRichTextMapper cardClusterRichTextMapper;

    public CustomerTagRelationServiceImpl(CardClusterRichTextMapper cardClusterRichTextMapper) {
        this.cardClusterRichTextMapper = cardClusterRichTextMapper;
    }

    @Override
    public List<CustomerTagVo> getCustomerTagRelationList(String customerId) {
        return cardClusterRichTextMapper.selectCustomerTagRelationList(customerId);
    }
}